package day14.problem1;

//乒乓球筐
//https://www.nowcoder.com/questionTerminal/bb4f1a23dbb84fd7b77be1fbe9eaaf32

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String s1 = in.next();
            String s2 = in.next();
            int[] hash1 = new int[128];
            int[] hash2 = new int[128];
            for(char ch : s2.toCharArray()) {
                hash1[ch]++;
            }
            for(char ch : s1.toCharArray()) {
                hash2[ch]++;
            }
            boolean flag = true;
            for(int i = 0; i<128; i++) {
                if(hash2[i] < hash1[i]) flag = false;
            }
            if(flag) System.out.println("Yes");
            else System.out.println("No");
        }
    }
}